﻿<UserControl x:Class="FXC.SL.UserControls.FXCLoading"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" >

    <Grid VerticalAlignment="Center" HorizontalAlignment="Center">

        <Border x:Name="Indicator"  HorizontalAlignment="Center" VerticalAlignment="Center">
            <StackPanel Orientation="Horizontal">
                <Grid>
                    <Path x:Name="IndeterminateDonut" Stretch="Fill" Fill="Orange" Data="M 783.278,492.112L 783.274,489.753C 783.274,488.8 784.049,488.026 785.002,488.026C 785.954,488.026 786.727,488.8 786.727,489.753L 786.726,492.112L 786.722,492.112C 786.658,493.007 785.911,493.714 785.002,493.714C 784.089,493.714 783.342,493.007 783.278,492.112M 796.164,498.338C 795.49,497.665 795.492,496.571 796.165,495.897L 797.833,494.23L 797.835,494.233C 798.515,493.645 799.542,493.673 800.186,494.317C 800.831,494.962 800.859,495.99 800.272,496.669L 798.606,498.339C 797.933,499.013 796.838,499.013 796.164,498.338M 771.485,498.425L 769.815,496.76C 769.141,496.087 769.141,494.99 769.816,494.317C 770.488,493.644 771.581,493.645 772.256,494.319L 773.923,495.987L 773.92,495.989C 774.509,496.667 774.48,497.695 773.837,498.338C 773.191,498.985 772.164,499.013 771.485,498.425M 800.789,509.501C 800.789,508.549 801.563,507.776 802.515,507.776L 804.874,507.777L 804.874,507.781C 805.77,507.845 806.477,508.592 806.477,509.501C 806.477,510.414 805.77,511.161 804.874,511.225L 802.515,511.229C 801.563,511.229 800.789,510.454 800.789,509.501M 763.524,509.501C 763.524,508.549 764.299,507.776 765.26,507.777L 767.61,507.777L 767.61,507.781C 768.506,507.845 769.213,508.592 769.213,509.501C 769.213,510.414 768.506,511.161 767.61,511.225L 767.61,511.227C 767.592,511.229 765.412,511.229 765.26,511.229L 765.251,511.229C 764.299,511.229 763.524,510.454 763.524,509.501M 794.162,509.459C 794.162,504.405 790.058,500.3 785.002,500.3C 779.945,500.3 775.841,504.405 775.841,509.459C 775.841,514.518 779.945,518.622 785.002,518.622C 790.058,518.622 794.162,514.518 794.162,509.459M 772.377,509.459C 772.377,502.493 778.033,496.837 785.002,496.837C 791.97,496.837 797.626,502.493 797.626,509.459C 797.626,516.43 791.97,522.087 785.002,522.087C 778.033,522.087 772.377,516.43 772.377,509.459M 769.815,524.687C 769.141,524.014 769.143,522.92 769.816,522.247L 771.484,520.58L 771.487,520.583C 772.165,519.994 773.192,520.023 773.835,520.666C 774.482,521.312 774.51,522.339 773.923,523.018L 772.257,524.688C 771.584,525.362 770.488,525.362 769.815,524.687M 797.834,524.774L 796.164,523.109C 795.49,522.436 795.49,521.341 796.165,520.666C 796.838,519.993 797.933,519.994 798.606,520.667L 800.273,522.335L 800.27,522.338C 800.857,523.018 800.83,524.045 800.186,524.688C 799.541,525.334 798.512,525.362 797.834,524.774M 783.278,529.376L 783.274,527.017C 783.274,526.065 784.049,525.29 785.002,525.29C 785.954,525.29 786.727,526.065 786.727,527.017L 786.726,529.376L 786.722,529.376C 786.658,530.272 785.911,530.979 785.002,530.979C 784.089,530.979 783.342,530.272 783.278,529.376" HorizontalAlignment="Center" VerticalAlignment="Center" Width="42" Height="42" RenderTransformOrigin="0.5,0.5" >
                        <Path.Triggers>
                            <EventTrigger RoutedEvent="Canvas.Loaded">
                                <BeginStoryboard>
                                    <Storyboard RepeatBehavior="100x">
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="IndeterminateDonut">
                                            <SplineDoubleKeyFrame KeyTime="0:0:1.2" Value="360"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </BeginStoryboard>
                            </EventTrigger>
                        </Path.Triggers>
                        <Path.RenderTransform>
                            <TransformGroup>
                                <ScaleTransform />
                                <SkewTransform />
                                <RotateTransform Angle="0"/>
                                <TranslateTransform />
                            </TransformGroup>
                        </Path.RenderTransform>
                    </Path>
                </Grid>
            </StackPanel>
        </Border>
    </Grid>
</UserControl>
